﻿using NewRetail.Application.Components.Goods.Entity;
using NewRetail.Application.Core.Entity;
using System;

namespace NewRetail.Application.Components.Warehouse.Entity
{
    public class PromoteSalesDiscount : BaseEntity, IReceiptEntity, IWarehouseEntity
    {
        public string warehouseID { get; set; }
        public decimal discountRate { get; set; }
        public int priorityLevel { get; set; }
        public bool isIntegral { get; set; }
        public bool isMemberOnly { get; set; }
        public DateTime startTime { get; set; }
        public DateTime endTime { get; set; }
        public string receiptNo { get; set; }
        public DateTime receiptDate { get; set; }
        public bool isAuditing { get; set; }
        public string remark { get; set; }
        public int? operateUserID { get; set; }
        public DateTime? operateTime { get; set; }
        /// <summary>
        /// 是否为新品- true为新品，false为旧品。默认true
        /// </summary>
        public bool isNewProduct { get; set; } = true;
        /// <summary>
        /// 前端系统是否显示改记录- true为显示，false为不显示。默认true
        /// </summary>
        public bool isShow { get; set; } = true;
        /// <summary>
        /// 按分类或单品打折。0按分类  1按单品
        /// </summary>
        public int discountType { get; set; }

        public Warehouse Warehouse { get; set; }
        public GoodsCategory[] GoodsCategory { get; set; }
        public PromoteSalesDiscountCategory[] PromoteSalesDiscountCategory { get; set; }
        public PromoteSalesDiscountGoods[] PromoteSalesDiscountGoods { get; set; }
        public GoodsInfo[] GoodsInfo { get; set; }
    }
}
